To ensure the perfect seal on HEPA filter, endless polyurethane foam as gasket is the best option.
Following is a vedio of the production process.
https://youtu.be/Z37t7Si6nnk
Please check if you are interested.